package com.source.lightfowl.basedata.entity;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * @Description:
 * @Author: Faink
 * @CreateTime: 2020/9/24 19:45
 */
@Entity
@Data
@DynamicInsert
@DynamicUpdate
@Table(name = "poultry_category_parent")
public class Poultry_Parent {
    @Id
    @GenericGenerator(name = "Poultry-parent-uuid", strategy = "uuid")
    @GeneratedValue(generator = "Poultry-parent-uuid")
    private String id;

    private String poultryParentName;

    @Column(name = "isDelete", nullable = false, columnDefinition = "int default 0")
    private Integer isDelete;

    private Date createDate;
}
